import axios from "./request";
import { IErrorData, ISuccessPageData } from "./returnData";

/**
 * 获取关于我
 * @returns 
 */
export function getAboutUrl(): Promise<ISuccessPageData<string> | IErrorData> {
    return axios.get('/api/about');
}

/**
 * 设置关于我
 * @param url 
 * @returns 
 */
export function setAboutUrl(url: string): Promise<ISuccessPageData<string> | IErrorData> {
    return axios.post('/api/about', { url });
}
